package com.shujia.duotai.exer;

public class FeederTest {

    public static void main(String[] args) {
        Feeder feeder = new Feeder();

        Panda panda = new Panda();
        Bamboo bamboo = new Bamboo();
        // public void feed(Animal animal, Food food)
        // Animal animal = panda;
//         Animal animal =  new Panda();
//        Food food = bamboo;
//        Food food = new Bamboo();
        feeder.feed(panda, bamboo);

        Tiger tiger = new Tiger();
        Meet meet = new Meet();
        feeder.feed(tiger, meet);


        Dog dog = new Dog();
        Bone bone = new Bone();
        bone.setName("骨头");
        feeder.feed(dog, bone);
    }
}
